<?php

function restaurant_restaurant_edit_page($rid){
    $object=db_select('ep_restaurants', 'r')
    ->fields('r')
    ->condition('rid',$rid,'=')
    ->execute()
    ->fetchObject();
    
    return drupal_render(drupal_get_form('restaurant_restaurant_upload_form',$object));
}